{include file='public/head' /}
<style type="text/css">
  .tablelist tr {
    border:1px solid #CFCFCF;
  }
  .tablelist tr td,.tablelist tr th{
    border:1px solid #CFCFCF;
  }
</style>
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-lg-10 col-md-offset-2 main" id="main" style="padding:10px">
        <h1 class="page-header">总代理
         <button type="button" class="btn btn-danger"  title="添加总代理" onclick="javascript:window.location.href='{:url('admin/users/addsole')}'"><span class="glyphicon glyphicon glyphicon-plus"></span> 添加总代理</button>
         <button type="button" class="btn btn-info"  title="添加用户" onclick="javascript:window.location.href='{:url('admin/users/addusers')}'"><span class="glyphicon glyphicon glyphicon-plus"></span> 添加用户</button>
         <!--  <button type="button" class="btn btn-danger"  title="删除全部选中" id="deleteSelect">删除</button> -->
        </h1>
        <div class="table-responsive" style="margin-top: -20px;border:none;">
          <table class="table table-striped table-hover tablelist">
            <thead>
              <tr style="background-color: #3399CC;color: white">
                <th><span class="glyphicon glyphicon-th-large"></span> <span>选择</span></th>
                <th><span class="glyphicon glyphicon-file"></span> <span>用户名</span></th>
                <th><span class="glyphicon glyphicon-list"></span> <span>会员邀请码</span></th>
                <th><span class="glyphicon glyphicon-list"></span> <span>代理邀请码</span></th>
                <th><span class="glyphicon glyphicon glyphicon-flag"></span> <span>金额</span></th>
                <th><span class="glyphicon glyphicon glyphicon-education"></span> <span>会员等级</span></th>
                <th><span class="glyphicon glyphicon-time"></span> <span>注册时间</span></th>
                <th><span class="glyphicon glyphicon-pencil"></span> <span>操作</span></th>
              </tr>
            </thead>
            <tbody>
              {volist name="data" id="vo"}
              <tr>
                <td><input type="checkbox" class="input-control" name="checkbox[]" value="" />{$vo.uid}</td>
                <td>{$vo.username}</td>
                <td>{$vo.icode1}</td>
                <td>{$vo.icode2}</td>
                <td>{$vo.money}</td>
                <td>{if condition="$vo.vip eq 1"}
                    会员
                    {elseif condition="$vo.vip eq 3"}
                    总代理
                    {else/}
                    代理
                    {/if}
                </td>
                <td>{$vo.createtime}</td>
                <td>
                 <a href="{:url('see',['uid'=>$vo.uid])}" rel="1" class="btn btn-danger btn-xs" name="see" style="font-size: 10px;" title="查看"><span class="glyphicon glyphicon-zoom-in"></span> 查看</a>
                  <a href="{:url('edit',['uid'=>$vo.uid])}" rel="1" class="btn btn-primary btn-xs" name="see" style="font-size: 10px;" title="编辑"><span class="glyphicon glyphicon-pencil"></span> 编辑</a>
                </td>
              </tr>  
              {/volist}
            </tbody>
          </table>
        </div>
    </div>
  </div>
</section>
</body>
</html>
